<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>thymeleaf 模版渲染</title>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
</head>
<body>
<p th:text="${hello}"/>
<p th:text="${#dates.format(datetime, 'yyyy-MM-dd HH:mm:ss')}"/>
<table border="1px" width="600px">
    <tr th:each="test,testStat:${tests}">
        <td th:text="${test.name}"></td>
    </tr>
</table>
</body>
</html>